import request from '@/utils/request'



// 获取路由
export const getchattopic = () => {
  return request({
    url: '/system/chattopic',
    method: 'get'
  })
}

export const deletechattopic = (ids) => {
  return request({
    url: '/system/chattopic/' + ids,
    method: 'delete'
  })
}

export const deletechatdetail = (ids) => {
  return request({
    url: '/system/chatdetail/' + ids,
    method: 'delete'
  })
}




export const getchattopiclist = (params) => {
  return request({
    url: '/system/chattopic/list',
    method: 'get',
    params
  })
}


export const addchattopic = (data) => {
  return request({
    url: '/system/chattopic',
    method: 'post',
    data
  })
}

export const addchatdetail = (data) => {
  return request({
    url: '/system/chatdetail',
    method: 'post',
    data
  })
}